{% extends "base.html" %}

{% block content %}
<div class="container mt-4">
    <h2>化石燃料燃烧的活动数据和排放因子数据一览表（通用）</h2>
    <div class="mb-3">
        <div class="btn-group">
            <a href="{{ url_for('report_fuel_consumption.export', format='excel') }}" class="btn btn-success">导出Excel</a>
            <a href="{{ url_for('report_fuel_consumption.export', format='word') }}" class="btn btn-primary">导出Word</a>
            <a href="{{ url_for('report_fuel_consumption.export', format='pdf') }}" class="btn btn-danger">导出PDF</a>
        </div>
    </div>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>燃料品类</th>
                <th>消费量(t)</th>
                <th>低位发热量GJ/t或GJ/10⁴m³数据</th>
                <th>发热量数据来源</th>
                <th>单位热值含碳量10⁻³tC/GJ</th>
                <th>碳氧化率%</th>
                <th>碳氧化率数据来源</th>
                <!-- <th>CO₂排放因子tCO₂/GJ</th> -->
            </tr>
        </thead>
        <tbody>
            {% for item in report_data %}
            <tr>
                <td>{{ item.fuel_type }}</td>
                <td>{{ item.consumption or '' }}</td>
                <td>{{ item.low_calorific_value or '' }}</td>
                <td>{{ item.calorific_source or '' }}</td>
                <td>{{ item.carbon_content or '' }}</td>
                <td>{{ item.oxidation_rate or '' }}</td>
                <td>{{ item.oxidation_source or '' }}</td>
                <!-- <td>{{ item.emission_factor or '' }}</td> -->
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}